โ† All COA Flashcard Decks

Automation & Scripting Flashcards

7 cards from real COA practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Automation & Scripting flashcards as text
  1. In a Heat stack, which update policy prevents all instances in an AutoScaling group from being replaced simultaneously?

    Answer: rolling_update

    The 'rolling_update' policy in OS::Heat::AutoScalingGroup limits how many instances are replaced at once during a stack update.

  2. Which openstacksdk method lists all servers visible to the authenticated user?

    Answer: conn.compute.servers()

    conn.compute.servers() returns a generator of Server objects from the Nova compute service using the openstacksdk Connection.

  3. When writing a Bash script to wait for a Nova server to reach ACTIVE status, which CLI command is most appropriate to poll?

    Answer: openstack server show -f value -c status

    Polling 'openstack server show' with '-f value -c status' returns just the status string, which can be checked in a loop until it equals ACTIVE.

  4. Which HOT intrinsic function reads the content of a local file and embeds it as a string value in a template?

    Answer: get_file

    'get_file' embeds the raw content of a local file (such as a user_data script) directly into the template at the specified path.

  5. Which Ansible module in the openstack.cloud collection attaches a floating IP to an existing server?

    Answer: os_floating_ip

    The 'os_floating_ip' module allocates and associates a floating IP with an OpenStack server instance.

  6. In a Terraform OpenStack configuration, which resource block creates a Neutron network?

    Answer: openstack_networking_network_v2

    'openstack_networking_network_v2' is the Terraform resource type for creating a Neutron virtual network in OpenStack.

  7. Which command suspends a running Heat stack's resources without deleting the stack itself?

    Answer: openstack stack suspend

    'openstack stack suspend' transitions a stack and its resources to a SUSPEND_COMPLETE state without removing the stack definition.