Free AWS Certified Developer - Associate Practice Questions
200 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the AWS Certified Developer - Associate practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1An EventBridge event bus receives an order event that must invoke two independent processors in parallel. Which rule configuration supports this fanout?
- A. Create two event buses, each with one target.
- B. Create one matching rule with both processors as targets.
- C. Send the event twice to a rule with one target.
- D. Create one rule that invokes the processors sequentially.
2A web application needs a managed user directory for its users to sign up and sign in. Which Cognito component provides that directory?
- A. A user pool.
- B. An identity pool.
- C. An IAM permission boundary.
- D. An STS role session.
3A Python Lambda .zip deployment includes lambda_function.py inside a nested src directory. Why might Lambda fail to run the handler?
- A. The handler file must be at the root of the .zip archive
- B. Python handler files must be inside a layer
- C. The handler file must be stored in an ECR image
- D. Lambda requires a requirements.txt file at the archive root
Answer: A
Explanation: AWS states, "If the .py file is not at the root of your .zip file, Lambda won't be able to run your code." The archive layout must expose the handler at its root.
Reference: Working with .zip file archives for Python Lambda Event Functions — Creating a .zip deployment package with no dependencies, around lines 69-75
4A direct Lambda Invoke request returns HTTP 200, but the caller reports a function-code failure. Which response detail confirms a function error?
- A. The X-Amz-Function-Error response header is present
- B. The Invoke response has HTTP status 200
- C. The ExecutedVersion response header identifies a version
- D. The LogResult field contains encoded execution logs
Answer: A
Explanation: AWS explains that when function code or the runtime returns an error, "the status code in the response from Lambda is 200 OK. The presence of an error in the response is indicated by a header named X-Amz-Function-Error." An HTTP 200 alone does not establish success.
Reference: Troubleshoot execution issues in Lambda — Troubleshoot execution issues in Lambda, introductory error behavior, lines 24-31
5An EventBridge rule should forward only events whose source and detail values meet specified criteria. What defines that selection?
- A. An event pattern on the rule.
- B. A target retry policy on the rule.
- C. A schedule expression on the rule.
- D. An input transformation on the target.
6After users authenticate with an external identity provider, a mobile app needs temporary AWS credentials to access permitted AWS resources. Which Cognito component provides them?
- A. An identity pool.
- B. A user pool alone.
- C. An API Gateway stage.
- D. An IAM policy simulator.
Answer: A
Explanation: AWS states, "After users authenticate with their provider and present authorization to an identity pool, they get temporary AWS credentials." Permissions on those credentials control AWS service access.
Reference: Getting started with Amazon Cognito identity pools — Opening description
7A developer prepares a Python Lambda layer containing shared packages. Which top-level directory must its .zip file contain?
- A. python
- B. src
- C. packages
- D. site-packages
8A Lambda function runs, but its invocation logs are missing from CloudWatch Logs. What should the developer verify first?
- A. Whether the function execution role allows creating log streams and putting log events
- B. Whether the invoking principal can read the function's CloudWatch log group
- C. Whether the function resource policy allows CloudWatch Logs to invoke it
- D. Whether the log group's retention period is longer than the invocation
Answer: A
Explanation: AWS says "Your execution role needs the following permissions to upload logs to CloudWatch Logs:" and lists "logs:CreateLogStream" and "logs:PutLogEvents". Verify those permissions on the function execution role; permissions of the invoking principal do not upload function logs.
Reference: Sending Lambda Event Function logs to CloudWatch Logs — Required IAM permissions, lines 24-35
9A worker may still be processing an SQS message when another worker receives the same message. Which queue setting should the developer review first?
- A. The message retention period.
- B. The delivery delay.
- C. The visibility timeout.
- D. The receive batch size.
Answer: C
Explanation: AWS says, "If you don't delete it before the timeout expires, the message becomes visible again in the queue and can be retrieved by another consumer." A visibility timeout shorter than processing can produce the symptom.
Reference: Amazon SQS visibility timeout — Setting and adjusting the visibility timeout
10A backend API checks a Cognito user pool token to authorize an API operation. Which token is intended for this purpose?
- A. The access token.
- B. The ID token.
- C. The refresh token.
- D. An AWS access key ID.
Topics in this practice bank
These topics describe the available practice for AWS Certified Developer - Associate. Review the examination outline and its sources for scope and allocation details.
Development with AWS Services
- Develop code for applications hosted on AWS
- Develop code for AWS Lambda
- Use data stores in application development
Security
- Implement authentication and/or authorization for applications and AWS services
- Implement encryption by using AWS services
- Manage sensitive data in application code
Deployment
- Prepare application artifacts to be deployed to AWS
- Test applications in development environments
- Automate deployment testing
- Deploy code by using AWS Continuous Integration and Continuous Delivery (CI/CD) services
Troubleshooting and Optimization
- Assist in a root cause analysis
- Instrument code for observability
- Optimize applications by using AWS services and features
How to use these free practice questions
Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.
These are independent study questions, not actual examination items. For examination requirements and official information, view AWS Certified Developer - Associate details.