🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

DevOps and AWS Fundamentals
40 Questions
0 Views

DevOps and AWS Fundamentals

Created by
@CarefreeLouvreMuseum

Podcast Beta

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Where should you go to replace the Sonar Cube configuration with a new static code analysis tool in Jenkins?

  • System configuration under global settings
  • Manage Jenkins and then go for global tool configuration (correct)
  • Project configuration settings
  • Pipeline configuration in the job settings
  • Which build tool must be installed on the Jenkins server to deploy a .war file in the Nexus repository?

  • Ant
  • Gradle
  • Maven (correct)
  • SBT
  • What option should be selected under post build actions in Jenkins if the subsequent job only needs to be triggered if the previous job is successful?

  • Trigger regardless of the build status
  • Trigger only if the build is stable (correct)
  • Trigger only if the build is unstable
  • Trigger only on build failure
  • Which of the following statements about Jenkins pipelines is incorrect?

    <p>Scripted pipeline is a more recent feature of Jenkins pipeline.</p> Signup and view all the answers

    As a Jenkins administrator, which option must be selected to specify the URL of a specific GitLab code repository in the project configuration page?

    <p>Pipeline script under SCM option</p> Signup and view all the answers

    How should you automate the manual triggering of Jenkins jobs that currently start at 6:00 AM every day?

    <p>Use cron expressions to schedule the jobs</p> Signup and view all the answers

    What is the primary role of a Jenkins administrator regarding the build tools?

    <p>To configure build tools and manage their settings</p> Signup and view all the answers

    Which file extension is commonly used for Java web application archive files deployed in repositories?

    <p>.war</p> Signup and view all the answers

    Which statement regarding the reboot action is not true?

    <p>The instance runs on a new host computer</p> Signup and view all the answers

    How can a user make CPU utilization data more visible on a single graph with other metrics on CloudWatch?

    <p>Change the Y-axis that plots CPU Utilization data</p> Signup and view all the answers

    After stopping and starting an EBS backed instance, which statement is not true?

    <p>The instance can only be started from a different Availability Zone</p> Signup and view all the answers

    What method should a user employ to find cost distribution for production and development instances?

    <p>Utilize Cost Allocation Tags in AWS billing reports</p> Signup and view all the answers

    What will AWS do if a user does not specify a maintenance window for an RDS instance type update?

    <p>AWS will select the default maintenance window</p> Signup and view all the answers

    Which process is not performed by Auto Scaling?

    <p>Rebooting instances to refresh resources</p> Signup and view all the answers

    What will occur if the user tries to delete a VPC that contains a running NAT instance?

    <p>The deletion will be blocked until the NAT instance is terminated</p> Signup and view all the answers

    What will CloudFormation do if a stack fails to create a part of its resources?

    <p>Roll back all changes and terminate created services</p> Signup and view all the answers

    What will be the output of the given code snippet: print(list(map(lambda first, second : first.upper()+str(second), ['aaa', 'bbb', 'ccc'], [1,2,3])))?

    <p>['AAA1', 'BBB2', 'CCC3']</p> Signup and view all the answers

    What will be printed after the execution of the function g() in the provided code block?

    <p>finally except</p> Signup and view all the answers

    What will be the output of the list comprehension l = [x[:2] for x in 'welcome to python programming'.split()] ?

    <p>['we', 'to', 'py', 'pr']</p> Signup and view all the answers

    What does the Thread.join() method do in a thread?

    <p>Waits for the thread on which join is invoked to terminate</p> Signup and view all the answers

    Considering this example: x = 'abcd'; y = [1,2,3,4]; what is the expected output of the print statement after calling f(x,y)?

    <p>abcd [1, 10, 3, 4]</p> Signup and view all the answers

    What will be printed after running this code snippet: def func(x, lst=[]): lst.append(x); return lst? What is the result of calling print(func(1)); print(func(2))?

    <p>[1, 2, 2]</p> Signup and view all the answers

    What is the output of the expression print(2 * 3 + 4)?

    <p>10</p> Signup and view all the answers

    What will happen when you execute the following code: fin = open('data'); fout = open('data', 'w'); fout.write('abcd'); fout.flush(); print(fin.read())?

    <p>It will print nothing</p> Signup and view all the answers

    What happens if a user tries to delete a public subnet that contains running EC2 instances?

    <p>The deletion will be blocked until the instances are terminated.</p> Signup and view all the answers

    Which of these options is not needed when creating an AMI from an instance store-backed EC2 instance?

    <p>AWS login ID to access the console</p> Signup and view all the answers

    What is the expected status of CloudWatch alarms on detached EBS volumes after the EC2 instance is stopped?

    <p>Insufficient Data</p> Signup and view all the answers

    Which of the following statements about tags in AWS is not true?

    <p>The maximum key length is 128 unicode characters.</p> Signup and view all the answers

    If a user has a MySQL RDS instance experiencing high latency due to the Multi AZ feature, which of the following actions may not help?

    <p>Take a snapshot from standby Replica.</p> Signup and view all the answers

    Which IP address cannot be assigned to an instance in a public or private subnet with CIDR 10.0.0.0/24?

    <p>10.0.0.255</p> Signup and view all the answers

    Which option is the best solution to provide access for over 1000 employees to various AWS services?

    <p>Attach an IAM role with the organization's authentication service.</p> Signup and view all the answers

    What step is not needed when creating an AMI from a running instance?

    <p>Defining the AMI launch permissions.</p> Signup and view all the answers

    What feature allows an ELB to stop sending new traffic to an EC2 instance during deregistration while allowing ongoing requests to complete?

    <p>Connection draining</p> Signup and view all the answers

    Which S3 bucket policy permission is equivalent to the WRITE ACL Permission on a bucket?

    <p>s3:DeleteObject</p> Signup and view all the answers

    When scheduling Auto Scaling through CLI, what is a limitation compared to the AWS Management Console?

    <p>CLI can only schedule for the next 30 days</p> Signup and view all the answers

    In the scenario where two recurring Auto Scaling processes are set up with conflicting schedules, what will occur?

    <p>Auto Scaling will throw an error</p> Signup and view all the answers

    What CloudWatch metric will always show a value of 0 for an EBS backed EC2 instance?

    <p>DiskReadBytes</p> Signup and view all the answers

    What is the best method to restrict access to production instances for developers in a VPC?

    <p>Define tags and use IAM policy conditions</p> Signup and view all the answers

    When configuring Azure MFA for Office 365, what is the requirement regarding user connections to the mailbox?

    <p>Only connections to mailbox are impacted by Azure MFA</p> Signup and view all the answers

    What is a key consideration in ensuring AWS infrastructure scales effectively during high-demand events, such as Christmas sales?

    <p>Implement proactive scaling based on schedules</p> Signup and view all the answers

    Study Notes

    DevOps

    • Sonar Cube can be deleted and configured via Jenkins
    • Maven is used for building Java applications.
    • Declarative Pipeline Syntax is not the only way to write a Jenkins file.
    • Scripted Pipeline is a more recent feature in Jenkins.
    • You can trigger a Jenkins job only if the previous job is successful via the Trigger only if the build is stable option.
    • Changing the pipeline script from SCM will allow you to tell Jenkins the URL of a specific GitLab code repository.
    • Con expressions can be used to automate Jenkins jobs that are manually triggered.
    • example: using a time condition to trigger a job at 6:00 AM every day.

    AWS

    • Rebooting an EBS-backed EC2 instance does not mean it will be running on a new host computer.
    • To better view data on a CloudWatch graph, you can select the Y axis that plots CPU utilization data.
    • Stopping and then restarting an EBS-backed instance does not disassociate the Elastic IP from the instance.
    • Cost Allocation Tags and AWS billing reports can be used to find the cost distribution for different types of EC2 instances deployed in a region.
    • The default maintenance window will be utilized if a user has not specified the maintenance window for an RDS instance.
    • Auto Scaling does not perform the action of rebooting instances.
    • Deleting a VPC with a running NAT instance will not be allowed.
    • If a CloudFormation stack fails during the process of creating resources, it will rollback all created services.
    • ELB will intercept the request to add the cookie details if sticky session is enabled.
    • You do not need AWS login ID to login to the console to create an AMI from an instance store backed AMI.
    • you will need an SSH key, an instance ID and a user's credentials to login to the instance to create a new AMI.
    • When an EBS-backed EC2 instance is stopped and the EBS volumes are detached, the alarms on the EBS volume will show the status of Insufficient Data.
    • Deleting a subnet with a running instance will not be allowed.
    • Taking a snapshot from standby Replica will not help reduce latency caused by the Multi AZ feature in a small RDS MySQL DB.
    • 10.0.0.255 cannot be the correct IP address assigned to an instance in a public or private subnet within a VPC with CIDR 10.0.0.0/24.
    • 64 unicode characters is the maximum length of a tag key.
      • Maximum value of a tag value length is 256 unicode characters.
    • An IAM role attached to the organization's authentication service is the best solution for providing access to various AWS services for a large organization.
    • Defining launch permissions is not a step performed while creating an AMI from an instance store backed AMI.
    • ELB connection draining helps stop sending new requests traffic to an instance while continuing in-flight requests.
    • s3:DeleteObject permissions in an S3 policy are equivalent to WRITE ACL Permission on a bucket.
    • Using CLI, you can schedule autoscaling group only up to 30 days in advance.
    • Auto Scaling will through an error if two conflicting schedules (daily and monthly) are set up.
    • DiskReadBytes will always display a 0 value in CloudWatch monitoring on an EBS backed EC2 instance.
    • You can define tags on the Development and production servers and add a condition to the IAM Policy for improved security in a VPC with production and development instances.

    Azure

    • To restrict MFA to only connections to the Exchange Online mailbox, you need to configure Azure MFA for the specific service principal used to connect to Exchange Online.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    ques devops 2.txt

    Description

    Test your knowledge on essential DevOps practices with Jenkins configurations and AWS functionalities. This quiz covers topics like Sonar Cube, Maven, CI/CD pipelines, and EBS-backed EC2 instances. Perfect for beginners looking to solidify their understanding of cloud and DevOps technologies.

    More Like This

    Jenkins Build Tools Quiz
    3 questions

    Jenkins Build Tools Quiz

    IntuitiveMountain avatar
    IntuitiveMountain
    Jenkins Build Tools Quiz
    3 questions

    Jenkins Build Tools Quiz

    IntuitiveMountain avatar
    IntuitiveMountain
    Jenkins Notifications Quiz
    2 questions
    Use Quizgecko on...
    Browser
    Browser