AWS DOP-C02 Practice Exam — Simulado AWS Certified DevOps Engineer Professional
Prepare-se para a certificação AWS Certified DevOps Engineer Professional DOP-C02 com simulados práticos, questões estilo prova e explicações detalhadas para acelerar sua aprovação.
Pagamento seguro Acesso imediato PC, tablet e celular Foco em certificações de TI
Questões 11–15 de 15 (com resposta)
Clique em "Ver resposta" para revelar o gabarito e a explicação, e participe da discussão da comunidade em cada questão.
Quer praticar como na prova? Use o teste gratuito (15 questões após cadastro rápido).
Questão 11 AWS DOP-C02 Practice Exam — Simulado AWS Certified DevOps Engineer Professional
Gratuita
Uma empresa está adotando o AWS CodeDeploy para automatizar suas implantações de aplicativos para um aplicativo Java-Apache Tomcat com um servidor Web Apache. A equipe de desenvolvimento começou com uma prova de conceito, criou um grupo de implantação para um ambiente de desenvolvedor e realizou testes funcionais no aplicativo. Após a conclusão, a equipe criará grupos de implantação adicionais para preparação e produção. O nível de log atual é definido nas configurações do Apache, mas a equipe deseja alterar essa configuração dinamicamente quando a implantação ocorrer, para que possam definir diferentes configurações de nível de log dependendo do grupo de implantação sem ter uma revisão de aplicativo diferente para cada grupo. Como esses requisitos podem ser atendidos com a MENOS sobrecarga de gerenciamento e sem exigir versões de script diferentes para cada grupo de implantação?
AMarque as instâncias do Amazon EC2 dependendo do grupo de implantação. Em seguida, coloque um script na revisão do aplicativo que chama o serviço de metadados e a API do EC2 para identificar de qual grupo de implantação a instância faz parte. Use estas informações para definir as configurações de nível de log. Faça referência ao script como parte do gancho do ciclo de vida AfterInstall no arquivo appspec.yml.
BCrie um script que use a variável de ambiente CodeDeploy DEPLOYMENT_GROUP_ NAME para identificar de qual grupo de implantação a instância faz parte. Use estas informações para definir as configurações de nível de log. Faça referência a esse script como parte do gancho do ciclo de vida BeforeInstall no arquivo appspec.yml.Correta
CCrie uma variável de ambiente personalizada do CodeDeploy para cada ambiente. Em seguida, coloque um script na revisão do aplicativo que verifica essa variável de ambiente para identificar de qual grupo de implantação a instância faz parte. Use estas informações para definir as configurações de nível de log. Faça referência a esse script como parte do gancho do ciclo de vida ValidateService no arquivo appspec.yml.
DCrie um script que use a variável de ambiente CodeDeploy DEPLOYMENT_GROUP_ID para identificar de qual grupo de implantação a instância faz parte para definir as configurações de nível de log. Faça referência a esse script como parte do gancho do ciclo de vida de instalação no arquivo appspec.yml.
Resposta correta:B
Explicação
Explicação: A seguir estão as etapas que a empresa pode executar para alterar o nível de log dinamicamente quando a implantação ocorre: Crie um script que use a variável de ambiente CodeDeploy DEPLOYMENT_GROUP_NAME para identificar de qual grupo de implantação a instância faz parte. Use estas informações para definir as configurações de nível de log. Faça referência a esse script como parte do gancho do ciclo de vida BeforeInstall no arquivo appspec.yml. A variável de ambiente DEPLOYMENT_GROUP_NAME é definida automaticamente pelo CodeDeploy quando a implantação é acionada. Isso significa que o script não precisa chamar o serviço de metadados ou a API do EC2 para identificar o grupo de implantação. Esta solução é a menos complexa e requer menos sobrecarga de gerenciamento. Também não requer versões de script diferentes para cada grupo de implantação. A seguir estão os motivos pelos quais as outras opções não estão corretas: A opção A está incorreta porque exigiria a marcação das instâncias do Amazon EC2, o que seria um processo manual e demorado. A opção C está incorreta porque exigiria a criação de uma variável de ambiente personalizada para cada ambiente. Este seria um processo complexo e sujeito a erros. A opção D está incorreta porque usaria a variável de ambiente DEPLOYMENT_GROUP_ID. No entanto, essa variável não é definida automaticamente pelo CodeDeploy, portanto, o script precisaria chamar o serviço de metadados ou a API do EC2 para obter o ID do grupo de implantação. Isso adicionaria complexidade e sobrecarga à solução.
Questão 12 AWS DOP-C02 Practice Exam — Simulado AWS Certified DevOps Engineer Professional
Gratuita
A company manages an application that stores logs in Amazon CloudWatch Logs. The company wants to archive the logs to an Amazon S3 bucket Logs are rarely accessed after 90 days and must be retained tor 10 years. Which combination of steps should a DevOps engineer take to meet these requirements? (Select TWO.)
AConfigure a CloudWatch Logs subscription filter to use AWS Glue to transfer all logs to an S3 bucket.
BConfigure a CloudWatch Logs subscription filter to use Amazon Kinesis Data Firehose to stream all logs to an S3 bucket.Correta
CConfigure a CloudWatch Logs subscription fitter to stream all logs to an S3 bucket.
DConfigure the S3 bucket lifecycle policy to transition logs to S3 Glacier after 90 days and to expire logs after 3.650 days.Correta
EConfigure the S3 bucket lifecycle policy to transition logs to Reduced Redundancy after 90 days and to expire logs after 3.650 days.
Questão 13 AWS DOP-C02 Practice Exam — Simulado AWS Certified DevOps Engineer Professional
Gratuita
A company has microservices running in AWS Lambda that read data from Amazon DynamoDB. The Lambda code is manually deployed by developers after successful testing The company now needs the tests and deployments be automated and run in the cloud Additionally, traffic to the new versions of each microservice should be incrementally shifted over time after deployment. What solution meets all the requirements, ensuring the MOST developer velocity?
ACreate an AWS CodePipelme configuration and set up a post-commit hook to trigger the pipeline after tests have passed Use AWS CodeDeploy and create a Canary deployment configuration that specifies the percentage of traffic and interval
BCreate an AWS CodeBuild configuration that triggers when the test code is pushed Use AWS CloudFormation to trigger an AWS CodePipelme configuration that deploys the new Lambda versions and specifies the traffic shift percentage and interval
CCreate an AWS CodePipelme configuration and set up the source code step to trigger when code is pushed. Set up the build step to use AWS CodeBuild to run the tests Set up an AWS CodeDeploy configuration to dep the CodeDeployDefault.LambdaLinearlDPercentEvery3Minut.es Option.Correta
DUse the AWS CLI to set up a post-commit hook that uploads the code to an Amazon S3 bucket after tests have passed. Set up an S3 event trigger that runs a Lambda function that deploys the new version. Use an interval in the Lambda function to deploy the code over time at the required percentage
Questão 14 AWS DOP-C02 Practice Exam — Simulado AWS Certified DevOps Engineer Professional
Gratuita
A company has proprietary data available by using an Amazon CloudFront distribution. The company needs to ensure that the distribution is accessible by only users from the corporate office that have a known set of IP address ranges. An AWS WAF web ACL is associated with the distribution and has a default action set to Count. Which solution will meet these requirements with the LEAST operational overhead?
ACreate a new regex pattern set. Add the regex pattern set to a new rule group. Create a new web ACL that has a default action set to Block. Associate the web ACL with the CloudFront distribution. Add a rule that allows traffic based on the new rule group.
BCreate an AWS WAF IP address set that matches the corporate office IP address range. Create a new web ACL that has a default action set to Allow. Associate the web ACL with the CloudFront distribution. Add a rule that allows traffic from the IP address set.
CCreate a new regex pattern set. Add the regex pattern set to a new rule group. Set the default action on the existing web ACL to Allow. Add a rule that has priority 0 that allows traffic based on the regex pattern set.
DCreate a WAF IP address set that matches the corporate office IP address range. Set the default action on the existing web ACL to Block. Add a rule that has priority 0 that allows traffic from the IP address set.Correta
Resposta correta:D
Explicação
Explanation: To restrict access to CloudFront to a specific IP address range: Create an AWS WAF IP address set with the corporate office IPs. Modify the existing WebACL's default action to Block (deny all except explicitly allowed). Add a high-priority rule that allows traffic from the IP address set (the corporate IPs). This way, only requests from the corporate IPs are allowed; all others are blocked. Regex pattern sets are not necessary for IP-based restrictions and add complexity. Setting default action to Allow with exceptions is less secure and more complex to manage. References: AWS WAF IP Set Examples Restricting Access by IP Address
Questão 15 AWS DOP-C02 Practice Exam — Simulado AWS Certified DevOps Engineer Professional
Gratuita
A DevOps engineer must implement a solution that immediately terminates Amazon EC2 instances in Auto Scaling groups when cryptocurrency mining activity is detected. Which solution will meet these requirements with the LEAST development effort?
AConfigure Amazon Route 53 to send query logs directly to Amazon CloudWatch Logs. Create an AWS Lambda functio 5 minutes and checks the query logs for domains related to cryptocurrency activity. If the domains are found, terminat EC2 instances.
BConfigure VPC Flow Logs to send flow logs to an Amazon S3 bucket. Create an AWS Lambda function that runs every 5 minutes and invokes an Amazon Athena query to find IP addresses associated with cryptocurrency activity. If the IP addresses are found, terminate the identified EC2 instances.
CEnable Amazon GuardDuty. Monitor EC2 findings. Create an Amazon EventBridge rule with GuardDuty as the event source. Create an AWS Lambda function that is triggered by the EventBridge rule. Configure the Lambda function to parse the event and terminate the identified EC2 instances.Correta
DEnable AWS Security Hub. Monitor EC2 findings. Create an Amazon EventBridge rule with Security Hub as the event source. Create an AWS Lambda function that is triggered by the EventBridge rule. Configure the Lambda function to parse the event and terminate the identified EC2 instances.
Resposta correta:C
Explicação
Explanation: The requirement is to immediately detect and terminate EC2 instances involved in cryptocurrency mining with the least development effort. Amazon GuardDuty is the AWS-native service specifically designed to detect malicious activities such as crypto-mining by continuously analyzing CloudTrail events, VPC Flow Logs, and DNS logs. GuardDuty includes managed threat intelligence and predefined findings like CryptoCurrency:EC2/BitcoinTool.B!DNS and CryptoCurrency:EC2/BitcoinTool.B!IP, which directly identify mining behavior without custom detection logic. Option C leverages this built-in capability. Once GuardDuty is enabled, findings are automatically generated when mining activity is detected. These findings are sent to Amazon EventBridge in near real time. An EventBridge rule can filter for cryptocurrency-related findings and trigger an AWS Lambda function. The Lambda function can then identify the affected EC2 instance and terminate it or adjust the Auto Scaling group to replace it. This approach requires minimal custom code and no log parsing, scheduled jobs, or analytics pipelines. Options A and B rely on custom log analysis, periodic execution, and maintaining lists of mining domains or IPs, which significantly increases complexity and response time. Option D uses AWS Security Hub, which aggregates findings from GuardDuty and other services but is not intended for immediate, low-latency remediation. Therefore, Option C provides the fastest detection, immediate response, and lowest development overhead using AWS-managed threat detection services.
Pronto para a prática real?
Teste 15 questões no player com interface de prova — cronômetro, navegação e revisão. Depois garanta acesso a todas as 449 questões.