| PDF + Test Engine |
|
||
| Test Engine |
|
||
|
|
Here are Amazon DVA-C02 PDF available features:
| 608 questions with answers | Updation Date : 16 Jul, 2026 |
| 1 day study required to pass exam | 100% Passing Assurance |
| 100% Money Back Guarantee | Free 3 Months Updates |
An developer is building a serverless application by using the AWS Serverless Application Model (AWS SAM). The developer is currently testing the application in a development environment. When the application is nearly finsihed, the developer will need to set up additional testing and staging environments for a quality assurance team. The developer wants to use a feature of the AWS SAM to set up deployments to multiple environments. Which solution will meet these requirements with the LEAST development effort?
A. Add a configuration file in TOML format to group configuration entries to everyenvironment. Add a table for each testing and staging environment. Deploy updates to theenvironments by using the sam deploy command and the --config-env flag thatcorresponds to the each environment.
B. Create additional AWS SAM templates for each testing and staging environment. Writea custom shell script that uses the sam deploy command and the --template-file flag todeploy updates to the environments.
C. Create one AWS SAM configuration file that has default parameters. Perform updates tothe testing and staging environments by using the —parameter-overrides flag in the AWSSAM CLI and the parameters that the updates will override.
D. Use the existing AWS SAM template. Add additional parameters to configure specificattributes for the serverless function and database table resources that are in eachenvironment. Deploy updates to the testing and staging environments by using the samdeploy command.
A company has an ecommerce application. To track product reviews, the company's development team uses an Amazon DynamoDB table. Every record includes the following A Review ID a 16-digrt universally unique identifier (UUID) • A Product ID and User ID 16 digit UUlDs that reference other tables • A Product Rating on a scale of 1-5 • An optional comment from the user The table partition key is the Review ID. The most performed query against the table is to find the 10 reviews with the highest rating for a given product. Which index will provide the FASTEST response for this query"?
A. A global secondary index (GSl) with Product ID as the partition key and Product Ratingas the sort key
B. A global secondary index (GSl) with Product ID as the partition key and Review ID asthe sort key
C. A local secondary index (LSI) with Product ID as the partition key and Product Rating asthe sort key
D. A local secondary index (LSI) with Review ID as the partition key and Product ID as thesort key
A developer wants to deploy a new version of an AWS Elastic Beanstalk application. During deployment the application must maintain full capacity and avoid service interruption. Additionally, the developer must minimize the cost of additional resources that support the deployment. Which deployment method should the developer use to meet these requirements?
A. All at once
B. Rolling with additional batch
C. Bluegreen
D. Immutable
A developer must analyze performance issues with production-distributed applications written as AWS Lambda functions. These distributed Lambda applications invoke other components that make up me applications. How should the developer identify and troubleshoot the root cause of the performance issues in production?
A. Add logging statements to the Lambda functions. then use Amazon CloudWatch to viewthe logs.
B. Use AWS CloudTrail and then examine the logs.
C. Use AWS X-Ray. then examine the segments and errors.
D. Run Amazon inspector agents and then analyze performance.
A developer is building a serverless application by using AWS Serverless Application Model (AWS SAM) on multiple AWS Lambda functions. When the application is deployed, the developer wants to shift 10% of the traffic to the new deployment of the application for the first 10 minutes after deployment. If there are no issues, all traffic must switch over to the new version. Which change to the AWS SAM template will meet these requirements?
A. Set the Deployment Preference Type to Canary10Percent10Minutes. Set theAutoPublishAlias property to the Lambda alias.
B. Set the Deployment Preference Type to LinearlOPercentEvery10Minutes. SetAutoPubIishAIias property to the Lambda alias.
C. Set the Deployment Preference Type to CanaryIOPercentIOMinutes. Set the PreTrafficand PostTraffic properties to the Lambda alias.
D. Set the Deployment Preference Type to LinearlOPercentEveryIOMinutes. Set PreTrafficand Post Traffic properties to the Lambda alias.
When a developer tries to run an AWS Code Build project, it raises an error because the length of all environment variables exceeds the limit for the combined maximum of characters. What is the recommended solution?
A. Add the export LC-_ALL" on _ US, tuft" command to the pre _ build section to ensurePOSIX Localization.
B. Use Amazon Cognate to store key-value pairs for large numbers of environmentvariables
C. Update the settings for the build project to use an Amazon S3 bucket for large numbersof environment variables
D. Use AWS Systems Manager Parameter Store to store large numbers ot environmentvariables
A developer is working on a Python application that runs on Amazon EC2 instances. The developer wants to enable tracing of application requests to debug performance issues in the code. Which combination of actions should the developer take to achieve this goal? (Select TWO)
A. Install the Amazon CloudWatch agent on the EC2 instances.
B. Install the AWS X-Ray daemon on the EC2 instances.
C. Configure the application to write JSON-formatted togs to /var/log/cloudwatch.
D. Configure the application to write trace data to /Var/log-/xray.
E. Install and configure the AWS X-Ray SDK for Python in the application.
A company is building a micro services app1 cation that consists of many AWS Lambda functions. The development team wants to use AWS Serverless Application Model (AWS SAM) templates to automatically test the Lambda functions. The development team plans to test a small percentage of traffic that is directed to new updates before the team commits to a full deployment of the application. Which combination of steps will meet these requirements in the MOST operationally efficient way? (Select TWO.)
A. Use AWS SAM CLI commands in AWS CodeDeploy lo invoke the Lambda functions lolest the deployment
B. Declare the EventlnvokeConfig on the Lambda functions in the AWS SAM templateswith OnSuccess and OnFailure configurations.
C. Enable gradual deployments through AWS SAM templates.
D. Set the deployment preference type to Canary10Percen130Minutes Use hooks to testthe deployment.
E. Set the deployment preference type to Linear10PefcentEvery10Minutes Use hooks totest the deployment.
A developer is writing an application that will retrieve sensitive data from a third-party system. The application will format the data into a PDF file. The PDF file could be more than 1 MB. The application will encrypt the data to disk by using AWS Key Management Service (AWS KMS). The application will decrypt the file when a user requests to download it. The retrieval and formatting portions of the application are complete. The developer needs to use the GenerateDataKey API to encrypt the PDF file so that the PDF file can be decrypted later. The developer needs to use an AWS KMS symmetric customer managed key for encryption. Which solutions will meet these requirements?
A. Write the encrypted key from the GenerateDataKey API to disk for later use. Use theplaintext key from the GenerateDataKey API and a symmetric encryption algorithm toencrypt the file.
B. Write the plain text key from the GenerateDataKey API to disk for later use. Use theencrypted key from the GenerateDataKey API and a symmetric encryption algorithm toencrypt the file.
C. Write the encrypted key from the GenerateDataKey API to disk for later use. Use theplaintext key from the GenerateDataKey API to encrypt the file by using the KMS EncryptAPI
D. Write the plain text key from the GenerateDataKey API to disk for later use. Use theencrypted key from the GenerateDataKey API to encrypt the file by using the KMS EncryptAPI
A team of developed is using an AWS CodePipeline pipeline as a continuous integration and continuous delivery (CI/CD) mechanism for a web application. A developer has written unit tests to programmatically test the functionality of the application code. The unit tests produce a test report that shows the results of each individual check. The developer now wants to run these tests automatically during the CI/CD process.
A. Write a Git pre-commit hook that runs the test before every commit. Ensure that eachdeveloper who is working on the project has the pre-commit hook instated locally. Reviewthe test report and resolve any issues before pushing changes to AWS CodeCommit.
B. Add a new stage to the pipeline. Use AWS CodeBuild as the provider. Add the newstage after the stage that deploys code revisions to the test environment. Write a buildspecthat fails the CodeBuild stage if any test does not pass. Use the test reports feature ofCodebuild to integrate the report with the CodoBuild console. View the test results inCodeBuild Resolve any issues.
C. Add a new stage to the pipeline. Use AWS CodeBuild at the provider. Add the newstage before the stage that deploys code revisions to the test environment. Write abuildspec that fails the CodeBuild stage it any test does not pass. Use the test reportsfeature of CodeBuild to integrate the report with the CodeBuild console. View the testresults in codeBuild Resolve any issues.
D. Add a new stage to the pipeline. Use Jenkins as the provider. Configure CodePipeline touse Jenkins to run the unit tests. Write a Jenkinsfile that fails the stage if any test does notpass. Use the test report plugin for Jenkins to integrate the repot with the Jenkinsdashboard. View the test results in Jenkins. Resolve any issues.