IT Questions and Answers :)

Wednesday, August 28, 2019

In PowerShell, what is "splatting"?

In PowerShell, what is "splatting"?

  • A way to pass multiple parameters to a cmdlet
  • A way to define many variables at once
  • An error state where many things failed at once
  • A way to dump the full contents of the pipeline 

EXPLANATION

Splatting to pass parameters to commands in PowerShell

Splatting is a method of passing a collection of parameter values to a command as unit. PowerShell associates each value in the collection with a command parameter. Splatted parameter values are stored in named splatting variables, which look like standard variables, but begin with an At symbol (@) instead of a dollar sign ($). The At symbol tells PowerShell that you are passing a collection of values, instead of a single value.
Splatting makes your commands shorter and easier to read. You can re-use the splatting values in different command calls and use splatting to pass parameter values from the $PSBoundParameters automatic variable to other scripts and functions.
Beginning in Windows PowerShell 3.0, you can also use splatting to represent all parameters of a command.

SYNTAX

<CommandName> <optional parameters> @<HashTable> <optional parameters>
<CommandName> <optional parameters> @<Array> <optional parameters>
To provide parameter values for positional parameters, in which parameter names are not required, use the array syntax. To provide parameter name and value pairs, use the hash table syntax. The splatted value can appear anywhere in the parameter list.
When splatting, you do not need to use a hash table or an array to pass all parameters. You may pass some parameters by using splatting and pass others by position or by parameter name. Also, you can splat multiple objects in a single command just so you pass no more than one value for each parameter.

 

Share:

Twitter is an example of what type of cloud service?

Twitter is an example of what type of cloud service?

  • SaaS
  • IaaS
  • PaaS
  • DBaaS 
Twitter is an example of what type of cloud service?

EXPLANATION

SaaS is also known as “on-demand software”. Users of SaaS rather than fully buy the license of various software hire the software at regular intervals and use it through an Internet browser. The variety of software provided by SaaS is very broad. There are a number of software used by SaaS from companies such as end users that employs in content management, human resources management, accounting, ERP, customer relationship management and other relevant areas.

The software-as-a-service type of cloud computing grows very quickly, while the largest market for software-as-a-service electricity is customer relationship management.
In this service model, the cloud-based applications are offered to the customer as a service on request. It is a single instance of the service running on remote computers “in the cloud”, owned and operated by others, and connected to the users' computers over the Internet and typically a web browser. Social networking sites like Facebook, Twitter, Flickr and Google are all examples of SaaS, although users are able to access the services through any Internet-enabled device.

 

Share:

For a software development firm, which of the following cloud benefits do they get specifically from PaaS?

For a software development firm, which of the following cloud benefits do they get specifically from PaaS?

  • Time to market
  • Vendor lock-in
  • Scalability
  • Security 


EXPLANATION

PaaS allows developers to quickly create and test applications. Getting your product to market before your competitors can give a competitive edge.
B, C, and D are incorrect. Vendor lock-in ties customers to vendor-specific solutions, but this is not a benefit of PaaS. Scalability embodies the ability to grow in a controlled manner, but it is not a distinguishing feature of PaaS as compared to other types of cloud offerings. Security does apply to cloud computing but not specifically to PaaS.







Share:

Which of the following is an example of IaaS?

Which of the following is an example of IaaS?

  • Cloud email accounts
  • Software code libraries
  • SLAs
  • Cloud storage 
Which of the following is an example of IaaS?

EXPLANATION 

IaaS (Infrastructure as a Service), as the name suggests, provides you the computing infrastructure, physical or (quite often) virtual machines and other resources like virtual-machine disk image library, block and file-based storage, firewalls, load balancers, IP addresses, virtual local area networks etc.


  • Examples: Amazon EC2, Windows Azure, Rackspace, Google Compute Engine. 

  • Share:

    Many cloud customers sharing the same computing services while having isolated computing environments is an example of which of the following?

    Many cloud customers sharing the same computing services while having isolated computing environments is an example of which of the following?

    • XaaS
    • Elasticity
    • Virtualization
    • Multitenancy 

    EXPLANATION

     The term "software multitenancy" refers to a software architecture in which a single instance of software runs on a server and serves multiple tenants. A tenant is a group of users who share a common access with specific privileges to the software instance.

    Share:

    Popular Posts