AWS Associate Certified Developer - Associate 1 — Questions and Answers
Question 1: Your application needs to store user session data that can be retrieved quickly. Which AWS service would be most suitable for this requirement?
- Amazon RDS
- Amazon DynamoDB (Correct answer)
- Amazon S3
- Amazon SQS
Correct answer: Amazon DynamoDB
Amazon DynamoDB is a fast, flexible NoSQL database service designed for applications that need consistent, single-digit millisecond latency at any scale. Its key-value and document data model makes it highly suitable for storing user session data, where quick reads and writes of small, frequently accessed items are critical. It offers high performance and scalability without operational overhead.
Question 2: Your application on AWS needs to perform background processing on a large batch of data. Which service allows you to run code without provisioning or managing servers and is suitable for this use case?
- Amazon EC2
- AWS Lambda (Correct answer)
- Amazon S3
- Amazon RDS
Correct answer: AWS Lambda
AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers. It's ideal for event-driven, background processing tasks, including large batch data processing, as it automatically scales and executes code in response to events. This eliminates operational overhead and allows you to pay only for the compute time consumed.
Question 3: You have an application that frequently writes and reads small objects, and you want to optimize for low-latency access. Which storage class should you use for maximum performance?
- Amazon S3 Standard (Correct answer)
- Amazon S3 Intelligent-Tiering
- Amazon Glacier
- Amazon S3 One Zone-Infrequent Access
Correct answer: Amazon S3 Standard
Amazon S3 Standard is designed for frequently accessed data and offers high durability, availability, and performance. It provides low-latency access and high throughput, making it the most suitable choice for applications that frequently write and read small objects and require maximum performance. Other S3 classes are optimized for cost savings with less frequent access or archival purposes.
Question 4: Which AWS service allows you to securely store and manage access to secrets, such as API keys and database credentials, needed by your application?
- Amazon S3
- AWS Secrets Manager (Correct answer)
- Amazon EC2
- AWS CloudTrail
Correct answer: AWS Secrets Manager
AWS Secrets Manager helps you protect access to your applications, services, and IT resources by enabling you to easily rotate, manage, and retrieve database credentials, API keys, and other secrets throughout their lifecycle. It integrates with other AWS services and allows for automatic rotation of secrets, enhancing security and reducing the risk of hardcoded credentials.
Question 5: You are developing an application that needs to interact with Amazon S3 to upload and retrieve files. Which AWS SDK feature should you use to simplify the integration?
- Amazon EC2 instance
- AWS CLI
- AWS SDK for your preferred programming language (Correct answer)
- AWS CloudFormation
Correct answer: AWS SDK for your preferred programming language
The AWS SDKs provide language-specific APIs, libraries, and tools that simplify interacting with AWS services like S3 directly from your application code. They abstract away the complexity of making raw HTTP requests, handling authentication, and parsing responses, allowing developers to focus on application logic rather than low-level communication details.
Your application needs to store user session data that can be retrieved quickly.
Which AWS service would be most suitable for this requirement?